package com.vitogiovanni.tobook.entity;

import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(detachable ="true")
public class Menu {
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key id;
	
	@Persistent(mappedBy = "menu")
    private List<ElementoMenu> elementiMenu;

	public Key getId() {
		return id;
	}

	public void setId(Key id) {
		this.id = id;
	}

	public List<ElementoMenu> getElementiMenu() {
		return elementiMenu;
	}

	public void setElementiMenu(List<ElementoMenu> elementiMenu) {
		this.elementiMenu = elementiMenu;
	}
	
	private String nome;

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}
	
}
